<?php

class Controllers_Test extends RestController {
	
	public function get() {
		
		// var_dump ( $this->request ['params'] );
		
		$this->response = array ( 'code'=>1, 'type'=>'test', 'value'=>'test' );
		$this->responseStatus = 503;
	}
	
	public function post() {
		// file_put_contents ( 'log.txt', serialize ( $this->request ['params'] ), FILE_APPEND | LOCK_EX );
		$this->response = array ( 'code'=>1, 'type'=>'test', 'value'=>'test' );
		$this->responseStatus = 503;
	}
	
	public function put() {
		$this->response = array ('TestResponse' => 'I am PUT response. Variables sent are - ' . http_build_query ( $this->request ['params'] ) );
		$this->responseStatus = 503;
	}
	
	public function delete() {
		$this->response = array ('TestResponse' => 'I am DELETE response. Variables sent are - ' . http_build_query ( $this->request ['params'] ) );
		$this->responseStatus = 503;
	}
	
	public function processGame() {
	
	}

}
